package com.lowcode.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName da_label
 */
@TableName(value ="da_label")
@Data
public class DaLabel implements Serializable {
    /**
     * 
     */
    @TableId(value = "id")
    private String id;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建日期
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新日期
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 所属部门
     */
    @TableField(value = "sys_org_code")
    private String sysOrgCode;

    /**
     * 全宗号
     */
    @TableField(value = "record_group_number")
    private String recordGroupNumber;

    /**
     * 档号
     */
    @TableField(value = "record_number")
    private String recordNumber;

    /**
     * 文案号
     */
    @TableField(value = "article_number")
    private String articleNumber;

    /**
     * 责任单位
     */
    @TableField(value = "duty_unit")
    private String dutyUnit;

    /**
     * 标题名
     */
    @TableField(value = "title")
    private String title;

    /**
     * 日期
     */
    @TableField(value = "date")
    private String date;

    /**
     * 年度
     */
    @TableField(value = "year")
    private String year;

    /**
     * 保密等级
     */
    @TableField(value = "security_classification")
    private String securityClassification;

    /**
     * 信息公开标识
     */
    @TableField(value = "disclose_information")
    private String discloseInformation;

    /**
     * 页数
     */
    @TableField(value = "page")
    private String page;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 标签名称
     */
    @TableField(value = "tag_name")
    private String tagName;

    /**
     * 分类id
     */
    @TableField(value = "classification_id")
    private String classificationId;

    /**
     * 文件路径
     */
    @TableField(value = "title_url")
    private String titleUrl;

    /**
     * png生成状态默认0，已生成1
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 排序字段
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 权限类型，用以区分文件夹
     */
    @TableField(value = "permission_type")
    private String permissionType;

    @Version
    private Integer version;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DaLabel other = (DaLabel) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getSysOrgCode() == null ? other.getSysOrgCode() == null : this.getSysOrgCode().equals(other.getSysOrgCode()))
            && (this.getRecordGroupNumber() == null ? other.getRecordGroupNumber() == null : this.getRecordGroupNumber().equals(other.getRecordGroupNumber()))
            && (this.getRecordNumber() == null ? other.getRecordNumber() == null : this.getRecordNumber().equals(other.getRecordNumber()))
            && (this.getArticleNumber() == null ? other.getArticleNumber() == null : this.getArticleNumber().equals(other.getArticleNumber()))
            && (this.getDutyUnit() == null ? other.getDutyUnit() == null : this.getDutyUnit().equals(other.getDutyUnit()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getDate() == null ? other.getDate() == null : this.getDate().equals(other.getDate()))
            && (this.getYear() == null ? other.getYear() == null : this.getYear().equals(other.getYear()))
            && (this.getSecurityClassification() == null ? other.getSecurityClassification() == null : this.getSecurityClassification().equals(other.getSecurityClassification()))
            && (this.getDiscloseInformation() == null ? other.getDiscloseInformation() == null : this.getDiscloseInformation().equals(other.getDiscloseInformation()))
            && (this.getPage() == null ? other.getPage() == null : this.getPage().equals(other.getPage()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getTagName() == null ? other.getTagName() == null : this.getTagName().equals(other.getTagName()))
            && (this.getClassificationId() == null ? other.getClassificationId() == null : this.getClassificationId().equals(other.getClassificationId()))
            && (this.getTitleUrl() == null ? other.getTitleUrl() == null : this.getTitleUrl().equals(other.getTitleUrl()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getSort() == null ? other.getSort() == null : this.getSort().equals(other.getSort()))
            && (this.getPermissionType() == null ? other.getPermissionType() == null : this.getPermissionType().equals(other.getPermissionType()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getSysOrgCode() == null) ? 0 : getSysOrgCode().hashCode());
        result = prime * result + ((getRecordGroupNumber() == null) ? 0 : getRecordGroupNumber().hashCode());
        result = prime * result + ((getRecordNumber() == null) ? 0 : getRecordNumber().hashCode());
        result = prime * result + ((getArticleNumber() == null) ? 0 : getArticleNumber().hashCode());
        result = prime * result + ((getDutyUnit() == null) ? 0 : getDutyUnit().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getDate() == null) ? 0 : getDate().hashCode());
        result = prime * result + ((getYear() == null) ? 0 : getYear().hashCode());
        result = prime * result + ((getSecurityClassification() == null) ? 0 : getSecurityClassification().hashCode());
        result = prime * result + ((getDiscloseInformation() == null) ? 0 : getDiscloseInformation().hashCode());
        result = prime * result + ((getPage() == null) ? 0 : getPage().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getTagName() == null) ? 0 : getTagName().hashCode());
        result = prime * result + ((getClassificationId() == null) ? 0 : getClassificationId().hashCode());
        result = prime * result + ((getTitleUrl() == null) ? 0 : getTitleUrl().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getSort() == null) ? 0 : getSort().hashCode());
        result = prime * result + ((getPermissionType() == null) ? 0 : getPermissionType().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", sysOrgCode=").append(sysOrgCode);
        sb.append(", recordGroupNumber=").append(recordGroupNumber);
        sb.append(", recordNumber=").append(recordNumber);
        sb.append(", articleNumber=").append(articleNumber);
        sb.append(", dutyUnit=").append(dutyUnit);
        sb.append(", title=").append(title);
        sb.append(", date=").append(date);
        sb.append(", year=").append(year);
        sb.append(", securityClassification=").append(securityClassification);
        sb.append(", discloseInformation=").append(discloseInformation);
        sb.append(", page=").append(page);
        sb.append(", remark=").append(remark);
        sb.append(", tagName=").append(tagName);
        sb.append(", classificationId=").append(classificationId);
        sb.append(", titleUrl=").append(titleUrl);
        sb.append(", status=").append(status);
        sb.append(", sort=").append(sort);
        sb.append(", permissionType=").append(permissionType);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}